
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>Market place</title>
</head>
<body>
	<ui:composition template="/templates/masterTemplate.xhtml">
		<ui:define name="content">
			<h:outputStylesheet library="css" name="shopping.css"></h:outputStylesheet>
			<div id="center">
				<h:form id="centerForm">
					<p:panel id="loginFailedPanel" header="#{msgs.loginFailed} !!!">
						<h:panelGrid columns="1" cellspacing="20"
							rendered="#{userModel.current.isNew}"
							style="font-size: 1.5em;color:orange">
							<h:outputText value="#{msgs.accountNotExist}." />
							<h:panelGroup>
								<h:outputText value="#{msgs.makeSureInputCorrectly}," />
								<h:outputText value="#{msgs.wordOr} " />
								<p:commandLink value="#{msgs.contactUs}."
									action="/public/contactUs.xhtml?faces-redirect=true"></p:commandLink>
							</h:panelGroup>
						</h:panelGrid>
						<h:panelGrid columns="1" rendered="#{!userModel.current.isNew}"
							style="font-size: 1.5em;color:orange">
							<h:panelGrid columns="1"
								rendered="#{!userModel.current.isActivated}">
								<h:outputText value="#{msgs.accountHasNotActivated} !!!!" />
								<h:outputText
									value="#{msgs.goToYourEmail} #{msgs.activateAccount}." />
							</h:panelGrid>
							<h:panelGrid columns="1"
								rendered="#{!userModel.current.isEnabled}">
								<h:outputText value="#{msgs.accountHasDisabled} !!!!" />
								<h:panelGroup>
									<h:outputText value="#{msgs.please} "></h:outputText>
									<p:commandLink value="#{msgs.contactUs}."
										action="/public/contactUs.xhtml?faces-redirect=true"></p:commandLink>
								</h:panelGroup>
							</h:panelGrid>
							<h:panelGrid columns="1" rendered="#{userModel.current.isLocked}">
								<h:outputText value="#{msgs.accountHasLocked} !!!!" />
								<h:panelGroup>
									<h:outputText value="#{msgs.please} "></h:outputText>
									<p:commandLink value="#{msgs.contactUs}."
										action="/public/contactUs.xhtml?faces-redirect=true"></p:commandLink>
								</h:panelGroup>
							</h:panelGrid>
						</h:panelGrid>
						<h:panelGrid columns="3" cellspacing="60px" style="width:100%;">
							<p:commandLink value="#{msgs.tryAgain}" onclick="loginDlg.show()"
								style="text-align:left" />
							<h:commandLink value="#{msgs.notMember}" type="submit"
								style="float:right" immediate="true"
								action="/public/register.xhtml?faces-redirect=true" />
							<h:commandLink value="#{msgs.forgetPassword}" type="submit"
								style="float:left" immediate="true"
								action="/public/passwordRecover.xhtml?faces-redirect=true" />
						</h:panelGrid>
					</p:panel>
					<p:effect event="load" type="bounce" for="loginFailedPanel"></p:effect>
				</h:form>
			</div>
			<div id="sideBarRight">
				<h:form id="rightForm">
					<ui:include src="/components/public/user/loginPanel.xhtml" />
					<ui:include
						src="/components/public/shopping/shoppingCartPanel.xhtml" />
				</h:form>
			</div>
		</ui:define>
	</ui:composition>
</body>

</html>